package com.repair.service.Person;

import java.util.List;


import com.repair.dao.Person.IPersonDao;
import com.repair.domain.Person;
import com.repair.factory.DaoFactory;


public class PersonService {
	private IPersonDao dao = (IPersonDao)DaoFactory.getInstance().getDao("PersonDao");
	
	
	public void save(Person obj){
		this.dao.savePerson(obj);
	}
	public  List<Person> list(){
		return this.dao.getAllPerson();
	}
	public void delete(Person obj){
		this.dao.deletePerson(obj);
	}
}
